﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="wfrmAgendaJudicialActualizar.aspx.cs" Inherits="PresentationLayer.WebForm11" %>

<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx1" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style01
        {
            width: 100px;
        }
        .div-linea
        {
            border: 1px solid rgb(80, 80, 80);
            margin: 5px 0px;
        }
        .style02
        {
            width: 100%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
        CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
        GroupBoxCaptionOffsetY="-22px" 
        SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="100%" 
        HeaderText="Actualizar Agenda Judicial">
        <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <ContentPaddings PaddingLeft="2px" PaddingTop="5px" PaddingBottom="5px"></ContentPaddings>
        <HeaderStyle Height="23px">
            <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
            <Paddings PaddingLeft="3px" PaddingTop="0px" PaddingBottom="0px"></Paddings>
        </HeaderStyle>
        <PanelCollection>
            <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <table>
                            <tr>
                                <td>
                                    <dx:ASPxButton ID="btn_GrabarAgenda" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                        Text="Grabar" Width="120px" OnClick="btn_GrabarAgenda_Click">
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnCancelar" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" Height="21px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                        Text="Cancelar" Width="70px" onclick="btnCancelar_Click">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        <table class="style02">
                            <tr>
                                <td class="style01">
                                    Código Legajo :
                                </td>
                                <td style="width: 180px">
                                    <dx:ASPxTextBox ID="txtNumeroLegajo" runat="server" ReadOnly="True" Width="150px">
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td style="width: 150px">
                                   
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td class="style01">
                                    Cuaderno :
                                </td>
                                <td>
                                    <dx:ASPxComboBox ID="cbo_Cuaderno" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" Height="19px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                        Width="150px">
                                        <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                        </LoadingPanelImage>
                                        <ButtonStyle Width="11px">
                                        </ButtonStyle>
                                        <ValidationSettings ErrorText="Error has occurred">
                                            <ErrorFrameStyle ImageSpacing="4px">
                                                <ErrorTextPaddings PaddingLeft="4px" />
                                            </ErrorFrameStyle>
                                        </ValidationSettings>
                                    </dx:ASPxComboBox>
                                </td>
                                <td class="style01">
                                    F. Cuaderno :
                                </td>
                                <td>
                                    <dx:ASPxDateEdit ID="dtp_FechaAgenda" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" Height="19px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                        Width="118px">
                                        <CalendarProperties>
                                            <HeaderStyle Spacing="1px" />
                                            <FooterStyle Spacing="4px" />
                                        </CalendarProperties>
                                        <ButtonStyle Width="11px">
                                        </ButtonStyle>
                                        <ValidationSettings>
                                            <ErrorFrameStyle ImageSpacing="4px">
                                                <ErrorTextPaddings PaddingLeft="4px" />
                                            </ErrorFrameStyle>
                                        </ValidationSettings>
                                    </dx:ASPxDateEdit>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    Tipo Audiencia :
                                </td>
                                <td>
                                    <dx:ASPxComboBox ID="cbo_Tipo_Audiencia" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" Height="19px" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                        Width="150px">
                                        <LoadingPanelImage Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                        </LoadingPanelImage>
                                        <ButtonStyle Width="11px">
                                        </ButtonStyle>
                                        <ValidationSettings ErrorText="Error has occurred">
                                            <ErrorFrameStyle ImageSpacing="4px">
                                                <ErrorTextPaddings PaddingLeft="4px" />
                                            </ErrorFrameStyle>
                                        </ValidationSettings>
                                    </dx:ASPxComboBox>
                                </td>
                                <td>
                                    &nbsp; Hora :
                                </td>
                                <td>
                                    <dx:ASPxTextBox ID="txt_Hora" runat="server" Width="118px">
                                        <MaskSettings Mask="##:##" />
                                    </dx:ASPxTextBox>
                                </td>
                                <td>
                                    &nbsp;
                                    <asp:Label ID="lbl_Hora" runat="server" Text="24 horas"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                        <table class="style02">
                            <tr>
                                <td class="style01">
                                    Sumilla :
                                </td>
                                <td>
                                    <dx:ASPxMemo ID="txt_Sumilla" runat="server" Height="100%" Width="100%">
                                    </dx:ASPxMemo>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <dx:ASPxButton ID="Btn_QuitarAgenda" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                        Text="Eliminar" Width="100px" OnClick="Btn_QuitarAgenda_Click">
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    <dx:ASPxButton ID="Btn_AgregarAgenda" runat="server" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css"
                                        Text="Agregar a la grila" Width="100%" OnClick="Btn_AgregarAgenda_Click">
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                        <table>
                            <tr>
                                <td>
                                    <dx1:ASPxGridView ID="dgv_Agenda" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css"
                                        CssPostfix="BlackGlass" Width="100%" KeyFieldName="NU_item" 
                                        onafterperformcallback="dgv_Agenda_AfterPerformCallback" 
                                        onheaderfilterfillitems="dgv_Agenda_HeaderFilterFillItems" 
                                        onpageindexchanged="dgv_Agenda_PageIndexChanged">
                                        <Columns>
                                            <dx1:GridViewDataTextColumn Caption="item" FieldName="NU_item" ShowInCustomizationForm="True" VisibleIndex="0">
                                            </dx1:GridViewDataTextColumn>
                                            <dx1:GridViewDataTextColumn Caption="Nº Legajo" FieldName="CO_legajo" ShowInCustomizationForm="True" VisibleIndex="1">
                                            </dx1:GridViewDataTextColumn>
                                            <dx1:GridViewDataTextColumn Caption="Código Cuaderno" FieldName="CO_cuaderno" ShowInCustomizationForm="True" VisibleIndex="2">
                                            </dx1:GridViewDataTextColumn>
                                            <dx1:GridViewDataDateColumn Caption="Fecha de Audiencia" FieldName="FE_audiencia" ShowInCustomizationForm="True" UnboundType="DateTime" VisibleIndex="3" Width="100px">
                                                <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy"></PropertiesDateEdit>
                                            </dx1:GridViewDataDateColumn>
                                            <dx1:GridViewDataTextColumn Caption="Hora de Audiencia" FieldName="HO_audiencia" ShowInCustomizationForm="True" VisibleIndex="4">
                                            </dx1:GridViewDataTextColumn>
                                            <dx1:GridViewDataTextColumn Caption="Tipo Audiencia" FieldName="NO_tipoaudiencia" ShowInCustomizationForm="True" VisibleIndex="5">
                                            </dx1:GridViewDataTextColumn>
                                            <dx1:GridViewDataTextColumn Caption="Detalle" FieldName="TX_sumilla_audiencia" ShowInCustomizationForm="True" VisibleIndex="6">
                                            </dx1:GridViewDataTextColumn>
                                        </Columns>
                                        <SettingsBehavior AllowFocusedRow="True" />
                                        <Settings ShowFilterRow="True" ShowGroupPanel="True" />
                                        <Images SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                            <LoadingPanelOnStatusBar Url="~/App_Themes/BlackGlass/GridView/gvLoadingOnStatusBar.gif">
                                            </LoadingPanelOnStatusBar>
                                            <LoadingPanel Url="~/App_Themes/BlackGlass/GridView/Loading.gif">
                                            </LoadingPanel>
                                        </Images>
                                        <ImagesFilterControl>
                                            <LoadingPanel Url="~/App_Themes/BlackGlass/Editors/Loading.gif">
                                            </LoadingPanel>
                                        </ImagesFilterControl>
                                        <Styles CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass">
                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                            </Header>
                                        </Styles>
                                        <StylesEditors>
                                            <CalendarHeader Spacing="1px">
                                            </CalendarHeader>
                                            <ProgressBar Height="25px">
                                            </ProgressBar>
                                        </StylesEditors>
                                    </dx1:ASPxGridView>
                                </td>
                            </tr>
                        </table>
                        <dx:ASPxPopupControl ID="pcMensaje" runat="server" Width="400px" ClientInstanceName="pcMensaje"
                            AllowResize="false" AllowDragging="false" PopupVerticalAlign="WindowCenter" PopupHorizontalAlign="WindowCenter"
                            Modal="true" CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" ShowCloseButton="false"
                            CloseAction="None" CssPostfix="BlackGlass" SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                            <LoadingPanelImage Url="~/App_Themes/BlackGlass/Web/Loading.gif">
                            </LoadingPanelImage>
                            <ContentStyle HorizontalAlign="Left" VerticalAlign="Top">
                            </ContentStyle>
                            <HeaderStyle>
                                <Paddings PaddingBottom="6px" PaddingLeft="15px" PaddingRight="6px" PaddingTop="3px" />
                            </HeaderStyle>
                            <ContentCollection>
                                <dx:PopupControlContentControl>
                                    <table width="100%">
                                        <tr>
                                            <td class="fila" align="center">
                                                <dx:ASPxLabel ID="lblMensaje" runat="server" CssClass="centrar">
                                                </dx:ASPxLabel>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="fila" align="center">
                                                <dx:ASPxButton ID="btnAceptar" runat="server" Text="Aceptar" AutoPostBack="false"
                                                    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass"
                                                    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css">
                                                    <ClientSideEvents Click="function(s, e){pcMensaje.Hide();}" />
                                                </dx:ASPxButton>
                                            </td>
                                        </tr>
                                    </table>
                                </dx:PopupControlContentControl>
                            </ContentCollection>
                        </dx:ASPxPopupControl>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </dx:PanelContent>
        </PanelCollection>
    </dx:ASPxRoundPanel>
</asp:Content>
